Platform Core .NET Assemblies API
GetMimeType(Byte[]) Method
See Also  Send Feedback
Terrasoft.Common Namespace > MimeTypeDetector Class > GetMimeType Method : GetMimeType(Byte[]) Method
data
The byte array that is used to determine the MIME type.

Glossary Item Box

Determines the MIME type from the data provided.

Syntax

 
C#
 
 

Parameters

data
The byte array that is used to determine the MIME type.

Return Value

Result of determine MIME type. Terrasoft.Core.MimeDetector.MimeTypeResult

Remarks

If the file name with the extension is available in the code, use the method that takes the file name as a parameter.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.